package com.tarena.lbs.business.dao.repository;

import com.tarena.lbs.base.protocol.pager.PageResult;
import com.tarena.lbs.business.pojo.po.BusinessPO;
import com.tarena.lbs.business.pojo.query.BusinessQuery;
import com.tarena.lbs.business.pojo.vo.BusinessStoreVO;
import com.tarena.lbs.business.pojo.vo.BusinessVO;
import com.tarena.lbs.business.pojo.vo.BusinessStoreVO;
import com.tarena.lbs.business.pojo.vo.StatisticsVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BusinessRepository {

    Integer save(BusinessPO param);

    PageResult<BusinessVO> businessInfoList(BusinessQuery query);

    BusinessStoreVO businessStoreDetail(Integer businessId);

    void updateBusiness(BusinessPO businessPO);

    BusinessStoreVO getBusiDetail(Integer businessId);

    List<StatisticsVO> selectAllBusiness();

    int countStoreById(Integer id);

    BusinessStoreVO getBusinessDetail(Integer articleId);
}
